package com.isdepci.project.carbon.mapper;

import com.isdepci.project.carbon.domain.BRecyclingCarbon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 回收利用碳汇Mapper接口
 *
 * @author isdepci
 * @date 2025-03-29
 */
public interface BRecyclingCarbonMapper
{

    // 按照年份查询
    List<BRecyclingCarbon> selectByYear(@Param("projectId") Long projectId, @Param("startYear") String startYear, @Param("endYear") String endYear);

    // 按照月份查询
    List<BRecyclingCarbon> selectByMonth(@Param("projectId") Long projectId, @Param("startMonth") String startMonth, @Param("endMonth") String endMonth);


    /**
     * 查询回收利用碳汇
     */
     BRecyclingCarbon selectBRecyclingCarbonById(Long id);

    /**
     * 查询回收利用碳汇列表
     */
     List<BRecyclingCarbon> selectBRecyclingCarbonList(BRecyclingCarbon bRecyclingCarbon);

    /**
     * 新增回收利用碳汇
     */
     int insertBRecyclingCarbon(BRecyclingCarbon bRecyclingCarbon);

    /**
     * 修改回收利用碳汇
     */
     int updateBRecyclingCarbon(BRecyclingCarbon bRecyclingCarbon);

    /**
     * 删除回收利用碳汇
     */
     int deleteBRecyclingCarbonById(Long id);

    /**
     * 批量删除回收利用碳汇
     */
     int deleteBRecyclingCarbonByIds(Long[] ids);


    void insertList(@Param("list") List<BRecyclingCarbon> list);


    List<BRecyclingCarbon> selectBRecyclingCarbonByProjectId(Long projectId);
}
